<table id="tbprofil">
    <?php
    $user_id = $this->session->userdata('user_id');
    $ava = $this->session->userdata('gravatar');
    $image_path = './../assets/avatar/images/' . $ava;
    if ($ava != '') {
        if (file_exists($image_path)) {
            $image_path = root_url('animus') . './assets/avatar/images/' . $ava;
        } else {
            $image_path = root_url('animus') . 'assets/noimage.gif';
        }
    } else {
        $image_path = root_url('animus') . 'assets/noimage.gif';
    }
    ?>
    <tr>
        <td>
            <img width="80px" src="<?php echo $image_path ?>"/>
        </td>
        <td style="font-size: larger">Bonjour<br/> <a href="<?php echo root_url('animus') . 'index.php/accueil/edit_profile' . '/' . $user_id; ?>"><?php echo $this->session->userdata('display_name') ?></a>
            <br/> <span style="color:#ffffff">Points de fidélité : <?php echo $this->db->get_where('lehu_users',array('id'=>$user_id))->row()->vip;?></span>
        </td>
    </tr>
    <tr>
        <td colspan="2">
             <a href="<?php echo root_url('animus') . '#'; ?>">Mes annonces</a><br/>
            <a href="<?php echo root_url('animus') . 'index.php/accueil/change_pass' . '/' . $user_id; ?>">Mot de passe | </a>
            <a href="<?php echo root_url('animus') . 'index.php/accueil/logout'; ?>">Déconnexion </a>
           
           
        </td>
    </tr>
</table>
<!-- END #logout_wrapper -->